# Name:    CFileRunnerGUI.py
# Date:    Sat Mar 27 09:56:02 CET 2010
# Purpose: Common FileRunner constants
import os

### general const
HOME = os.path.expanduser('~')
#HOME = os.path.expanduser('~/tmp/filerunner_testing/CFG')
VERSION = '<DEVEL-VERSION>'
AUTHOR = 'Filip Husak'
CFG_DIR = HOME + '/.filerunner'
CFG_FILE = CFG_DIR + '/00_filerunner.cfg'
HISTORY_FILE = CFG_DIR + '/history'

### GUI const
WIDTH = 600
LABEL = 'F i l e R u n n e r'
TOOLTIP = 'FileRunner'
ICON = 'img/icon.png'
ICON_TRAY = 'img/icon_tray.png'
LICENSE = 'Apache License, Version 2.0'
ENTRY_COMPLETION_HISTORY_SEP = '--- HISTORY MATCHES --------------------------------------------------'
ENTRY_COMPLETION_ALL_SEP = '--- ALL MATCHES --------------------------------------------------'
ENTRY_COMPLETION_SEPARATOR_CNT = 2 # 2 macros above

# Menu items
MENU_GENERATE_DB_FILE = 'Regenerate database file'
MENU_ABOUT = 'About...'
MENU_EXIT = 'Quit'

# Messages
MSG_GENERATING_DB_FILE = 'The database file is generating. Please wait...'
#MSG_FILEGENERATED = 'The database file was generated successfully.'
MSG_FILEGENERATED_OK = 'The database file was generated successfully.'
MSG_FILEGENERATED_FAILED = 'The database file was not generated. Status code: '
MSG_ENTRY_FILES_LOADED = ' entries were loaded from the database file.'
MSG_PERMISSION_DENIED = 'Cannot access the database file. Permission denied: '
MSG_DB_FILE_NOT_EXISTS = 'The database file does not exist. \n\
You can generate the database file from popup menu. This operation may take a few minutes.'
#MSG_UNKNOWN_ERROR = 'Unknown error: '
MSG_SEARCH_PATH_NOT_EXIST = 'The search path directory does not exist. Check the configuration parameter SEARCH_PATH.'
